package com.lesso.zgs.sunflower.infra.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.lesso.zgs.sunflower.model.EmployeeAttendanceRule;
import com.lesso.zgs.sunflower.pojo.dto.EmployeeAttendanceRuleQueryDTO;
import com.lesso.zgs.sunflower.pojo.vo.EmployeeAttendanceRuleVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 员工考勤规则关系 Mapper 接口
 * </p>
 *
 * @author zgs
 * @since 2025-07-03
 */
@Mapper
public interface EmployeeAttendanceRuleMapper extends BaseMapper<EmployeeAttendanceRule> {

    /**
     * 分页查询员工考勤规则关系（带员工和规则信息）
     */
    List<EmployeeAttendanceRuleVO> selectPageList(Page<EmployeeAttendanceRuleVO> page, @Param("dto") EmployeeAttendanceRuleQueryDTO dto);

    /**
     * 根据员工ID查询考勤规则
     */
    List<EmployeeAttendanceRuleVO> selectByEmployeeId(@Param("employeeId") Long employeeId);
} 